home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / help.c < prev    next >
C/C++ Source or Header  |  1994-01-07  |  4KB  |  164 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_help23 ;
  9. extern int    Text_help23 ;
  10. extern int    ScrollBar_help ;
  11. extern int    scroll_help() ;
  12. extern int    Message_help ;
  13. extern int    DButton_help2 ;
  14. extern int    help_on() ;
  15. extern int    _001Message_help ;
  16. extern int    _001DButton_help2 ;
  17. extern int    h_fail() ;
  18. extern int    _002Message_help ;
  19.  
  20. #define ALIGN    4
  21. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  22.  
  23. /*    MMI_init 用データ    */
  24.  
  25. /*    ヘッダ    */
  26.  
  27. MMIINIT    initDataHELP = { "MmiInit",   8, 0 } ;
  28.  
  29. /* Dialog_help23 */
  30.  
  31. static MMIPACKET d001 = {    &Dialog_help23,
  32.                             NULL,
  33.                             &MJ_DIALOGL40,
  34.                             OFFSET(DIALOGL40),
  35.                             0
  36.                         } ;
  37. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  38.                                8,  25, 414, 266, 0,13, 0,
  39.                             MS_SRECTL40,
  40.                             NULL, 101, 106
  41.                         } ;
  42.  
  43. /* Text_help23 */
  44.  
  45. static MMIPACKET d002 = {    &Text_help23,
  46.                             &Dialog_help23,
  47.                             &MJ_TEXTL40,
  48.                             OFFSET(TEXTL40),
  49.                             0
  50.                         } ;
  51. static TEXTL40    d002d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
  52.                                9,  44, 398, 263, 0, 0,15,
  53.                             MS_NONEL40,
  54.                             0,
  55.                                0,   0,   0,   0,
  56.                                0,   0,   0,   0,   0,
  57.                                   -1,   0,   0,
  58.                                0,   0,   0,   0,
  59.                                0,
  60.                                0,   0,   0,   0,
  61.                                1,  12,  12,   0,   0,
  62.                                0,   0,   0,   0,   0,   0,   0,
  63.                                0,   0,   0,   0,
  64.                                4
  65.                         } ;
  66.  
  67. /* ScrollBar_help */
  68.  
  69. static MMIPACKET d003 = {    &ScrollBar_help,
  70.                             &Dialog_help23,
  71.                             &MJ_SCRLL40,
  72.                             OFFSET(SCRLL40),
  73.                             0
  74.                         } ;
  75. static SCRLL40    d003d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  76.                              400,  45, 411, 263, 0,15, 7,
  77.                             MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  78.                             scroll_help,
  79.                                0,   0,9255,  16,  16,
  80.                              281, 282
  81.                         } ;
  82.  
  83. /* Message_help */
  84.  
  85. static MMIPACKET d004 = {    &Message_help,
  86.                             &Dialog_help23,
  87.                             &MJ_MSGL40,
  88.                             OFFSET(MSGL40),
  89.                             0
  90.                         } ;
  91. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  92.                               21,  27, 253,  42, 0,15, 9,
  93.                             MS_NONEL40,
  94.                             "Videoテロッパーの説明",
  95.                                2,  16,  16,
  96.                             MS_NONEL40,
  97.                                0,   0
  98.                         } ;
  99.  
  100. /* DButton_help2 */
  101.  
  102. static MMIPACKET d005 = {    &DButton_help2,
  103.                             &Dialog_help23,
  104.                             &MJ_DBUTTONL40,
  105.                             OFFSET(DBUTTONL40),
  106.                             0
  107.                         } ;
  108. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  109.                              338,  26, 403,  42, 0, 9, 0,
  110.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  111.                             help_on,
  112.                             0x0000
  113.                         } ;
  114.  
  115. /* _001Message_help */
  116.  
  117. static MMIPACKET d006 = {    &_001Message_help,
  118.                             &Dialog_help23,
  119.                             &MJ_MSGL40,
  120.                             OFFSET(MSGL40),
  121.                             0
  122.                         } ;
  123. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  124.                              341,  28, 400,  39, 0,15,14,
  125.                             MS_NONEL40,
  126.                             "説明消す",
  127.                                1,  12,  12,
  128.                             MS_NONEL40,
  129.                                0,   0
  130.                         } ;
  131.  
  132. /* _001DButton_help2 */
  133.  
  134. static MMIPACKET d007 = {    &_001DButton_help2,
  135.                             &Dialog_help23,
  136.                             &MJ_DBUTTONL40,
  137.                             OFFSET(DBUTTONL40),
  138.                             0
  139.                         } ;
  140. static DBUTTONL40    d007d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  141.                              258,  26, 323,  42, 0,10, 0,
  142.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  143.                             h_fail,
  144.                             0x0000
  145.                         } ;
  146.  
  147. /* _002Message_help */
  148.  
  149. static MMIPACKET d008 = {    &_002Message_help,
  150.                             &Dialog_help23,
  151.                             &MJ_MSGL40,
  152.                             OFFSET(MSGL40),
  153.                             0
  154.                         } ;
  155. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  156.                              261,  28, 320,  39, 0,15,14,
  157.                             MS_NONEL40,
  158.                             "ファイル",
  159.                                1,  12,  12,
  160.                             MS_NONEL40,
  161.                                0,   0
  162.                         } ;
  163.  
  164.